<?php
namespace app\home\controller;

use tinymvc\core\Controller;
use app\home\model\User;

class IndexController extends Controller
{
    public function indexAction()
    {
    	// $user = new User();
    	// $user->find(1); // find id = 1 in the database and return it.
		// echo $user->username;

        $this->assign('message', 'Welcome to Tiny MVC Home Module');
        $this->setLayout(false);
        $this->display();
    }

	public function testAction($id,$val)
	{
		echo $id;
		echo $val;
		echo config('database.mysql.host');
	}

}
